# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-nokia-n9
pkgver=2
pkgrel=1
pkgdesc="Nokia N9"
url="https://postmarketos.org"
arch="armhf"
license="MIT"
depends="postmarketos-base linux-nokia-n9 ofono watchdog-kick"
makedepends="devicepkg-dev"
source="
	deviceinfo
	initfs-hook.sh
"
options="!check !archcheck"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="linux-firmware"
	mkdir "$subpkgdir"
}

sha512sums="
f1a940b092e38d241a81828bbf3116ec07684e89519ed16cb9b1c271685979f0bce070d615f21af833d765a28cc92d8438e0306be7c34cb184c9b7d949a55649  deviceinfo
194b135573da8c894b079bc00cf560e318a62d71ed3dd63f219f0f80d0f882b7d41e988c9c0945319a665e0f217c8eb5ff5353acafe25fa755a84e9e8de3df4b  initfs-hook.sh
"
